From 1235146be6b087f1f1357b3c0baba256b5d44a25 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 5 Jan 2011 23:56:10 +0000 Subject: [PATCH] Unused global --- tests/phpunit/includes/api/ApiQueryTest.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/phpunit/includes/api/ApiQueryTest.php b/tests/phpunit/includes/api/ApiQueryTest.php index dbb64bdcbf..d6da9503f6 100644 --- a/tests/phpunit/includes/api/ApiQueryTest.php +++ b/tests/phpunit/includes/api/ApiQueryTest.php @@ -43,10 +43,6 @@ class ApiQueryTest extends ApiTestSetup { } function testTitlesAreRejectedIfInvalid() { - - global $wgSitename; - - $title = false; while( !$title || Title::newFromText( $title )->exists() ) { $title = md5( mt_rand( 0, 10000 ) + rand( 0, 999000 ) ); -- 2.20.1